package org.poem.controller;

import org.poem.service.DemoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@org.springframework.web.bind.annotation.RestController
public class RestController {

    @Autowired
    private DemoServiceImpl demoService;

    @RequestMapping(value = "/testRest",produces = "text/pain;charset=UTF-8")
    public @ResponseBody String testTest(){
        return  demoService.saySomething();
    }
}
